package collections.my;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class MapOrderTest {

	public static void main(String[] args) {
		
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("1", "1_String");
		map.put("2", 2);
		map.put("3", BigDecimal.ZERO);
		
		
		for (Entry<String, Object> entry : map.entrySet()) {
			System.out.println(entry.getKey());
		}
		
		
		for (Entry<String, Object> entry : map.entrySet()) {
			System.out.println(entry.getValue());
		}
		
		String v1 = (String) map.get("1");
		Integer v2 = (Integer) map.get("2");
		BigDecimal v3 = (BigDecimal) map.get("3");
		
		System.out.println("=========");
		System.out.println(v1);
		System.out.println(v2);
		System.out.println(v3);
		
	}
	
}
